package org.cloudlab.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.cloudlab.bean.AcademicJournal;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Liu Yicong
 * @date 2023/9/3
 */
@Repository
@Transactional
public interface AcademicJournalMapper extends BaseMapper<AcademicJournal> {
	List<AcademicJournal> queryByPage(@Param("start") long start, @Param("size") long size, AcademicJournal journal, @Param("order") String sortOrder);

	Long queryPageCount(@Param("journal") AcademicJournal journal);
}
